setUp{
  conversationContext.activate();
}
tearDown{
  for (  Project project : projects) {
    if (!project.isNew()) {
      projectRepository.remove(project);
  conversationContext.deactivate();
}
projectManagement{
  Project project=new Project("new project",Dates.create(2011,8,6));
  scrumManager.setCurrentProject(project);
  scrumManager.saveCurrentProject();
  project.setEndDate(Dates.create(2011,9,6));
  scrumManager.saveCurrentProject();
}
sprintManagement{
  Project project=new Project("new project",Dates.create(2011,8,6));
  scrumManager.setCurrentProject(project);
  scrumManager.saveCurrentProject();
  Sprint sprint=new Sprint("new sprint");
  scrumManager.setCurrentSprint(sprint);
  scrumManager.saveCurrentSprint();
  sprint.setEndDate(Dates.create(2011,9,6));
  sprint.setGainedStoryPoints(10);
  sprint.setIterationScope(3);
  sprint.setDailyMeetingTime(Dates.create(2011,9,6,1,1,1));
  scrumManager.saveCurrentSprint();
  scrumManager.removeSprint(sprint);
}
storyManagement{
  Project project=new Project("new project",Dates.create(2011,8,6));
  scrumManager.setCurrentProject(project);
  scrumManager.saveCurrentProject();
  Sprint sprint=new Sprint("new sprint");
  scrumManager.setCurrentSprint(sprint);
  scrumManager.saveCurrentSprint();
  Story story=new Story("new story");
  scrumManager.setCurrentStory(story);
  scrumManager.saveCurrentStory();
  story.setEndDate(Dates.create(2011,9,6));
  story.setAcceptance("test");
  story.setPriority(3);
  scrumManager.saveCurrentStory();
  scrumManager.removeStory(story);
}
taskManagement{
  Project project=new Project("new project",Dates.create(2011,8,6));
  scrumManager.setCurrentProject(project);
  scrumManager.saveCurrentProject();
  Sprint sprint=new Sprint("new sprint");
  scrumManager.setCurrentSprint(sprint);
  scrumManager.saveCurrentSprint();
  Story story=new Story("new story");
  scrumManager.setCurrentStory(story);
  scrumManager.saveCurrentStory();
  Task task=new Task("new task");
  scrumManager.setCurrentTask(task);
  scrumManager.saveCurrentTask();
  task.setEndDate(Dates.create(2011,9,6));
  task.setStatus(TaskStatus.WORKING);
  scrumManager.saveCurrentTask();
  scrumManager.removeTask(task);
}
